package com.andy.buyu.server.dto;

import io.netty.buffer.ByteBuf;

/**
 * 错误信息反馈
 * @author cuiwm
 */
public class ErrorMessage extends BaseMessage{
	
    private int errorCode;
    
    public ErrorMessage(int errorCode) {
    	this.errorCode = errorCode;
	}

	@Override
	public void writeBody(ByteBuf buf) {
		buf.writeShort(errorCode);
	}


}